//
//  WXAuth.h
//  hongyantub2b
//
//  Created by Apple on 2018/8/23.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@class WXAuth;

#define  WXAUTH [WXAuth sharedInstance]

@protocol WXAuthDelegate <NSObject>

@optional
- (void)wXAuth:(WXAuth *)wXAuth wXUserInfo:(NSDictionary*)info;

@end
@interface WXAuth : NSObject

@property (nonatomic, assign) id<WXAuthDelegate> delegate;
//全局管理对象
+ (WXAuth *)sharedInstance;

- (BOOL)handleOpenURL:(NSURL *)url;

- (void)sendWXAuthReq;

@property (nonatomic, copy) NSString *openid;
@property (nonatomic, copy) NSString *userSex;
@property (nonatomic, copy) NSString *nickname;
@property (nonatomic, copy) NSString *head_pic;

@end
